#include <curses.h>

char *map[]={
	"***************",
	"*      *      *",
	"*             *",
	"*      *** ****",
	"**** ***   *  *",
	"*          *  *",
	"*          *  *",
	"*             *",
	"*          *  *",
	"***************"
};

int main() {
	//initialize curses
	keypad(initscr(),1);
	
	//player's starting coordinates 
	int y=1;
	int x=1;
	
	//draw map
	for (int yy=0;yy<10;yy++)
		for (int xx=0;xx<15;xx++)
			mvaddch(yy,xx,map[yy][xx]);
	//draw player
	mvaddch(y,x,'@');

	//wait for key press before leaving
	getch();
	//clean up after we've finished using curses
	return endwin();
}
